package edu.ensmp.ckEditor.control;

import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;


import edu.ensmp.ckEditor.ckModel.CKModel;
import edu.ensmp.ckEditor.gui.EditorFrame;

public class PanelListener implements FocusListener {
	private EditorFrame _editorFrame;	
	private CKModel _model;
	
	
	public PanelListener(CKModel model, EditorFrame editorFrame){
		this._model = model;
		this._editorFrame = editorFrame;
	}
	
	
	public void focusGained(FocusEvent e) {
		_editorFrame.getButtonPanel().setSelectedIndex(0);		
	}

	
	public void focusLost(FocusEvent e) {
		// TODO Auto-generated method stub
		
	}

}
